// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_TAX_DETAIL
// * CreateDate    : 2014-06-05 18:29:54
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:54
// * LastChanger   : 2014-06-05 18:29:54
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FinTaxDetailEntity : EntityBase
    {
        public FinTaxDetailTable TableSchema
        {
            get
            {
                return FinTaxDetailTable.Current;
            }
		}
		
		public FinTaxDetailEntity()
        {

        }
		
		public FinTaxDetailEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.TaxId = Convert.ToString(CommonFunctions.ToObject(dr["TAX_ID"]));
			this.ConsumptionTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["CONSUMPTION_TAX"]));
			this.BusinessTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["BUSINESS_TAX"]));
			this.BuildingTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["BUILDING_TAX"]));
			this.ResourcesTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["RESOURCES_TAX"]));
			this.IncrementTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["INCREMENT_TAX"]));
			this.CityTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["CITY_TAX"]));
			this.EducationTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["EDUCATION_TAX"]));
			this.UnloadingTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["UNLOADING_TAX"]));
			this.TaxDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["TAX_DATE"]));
			this.OtherTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["OTHER_TAX"]));
        }
		
		public FinTaxDetailEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.TaxId = Convert.ToString(CommonFunctions.ToObject(dr["TAX_ID"]));
			this.ConsumptionTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["CONSUMPTION_TAX"]));
			this.BusinessTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["BUSINESS_TAX"]));
			this.BuildingTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["BUILDING_TAX"]));
			this.ResourcesTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["RESOURCES_TAX"]));
			this.IncrementTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["INCREMENT_TAX"]));
			this.CityTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["CITY_TAX"]));
			this.EducationTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["EDUCATION_TAX"]));
			this.UnloadingTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["UNLOADING_TAX"]));
			this.TaxDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["TAX_DATE"]));
			this.OtherTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["OTHER_TAX"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinTaxDetailTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string TaxId
        {
            get { return Convert.ToString(GetData(FinTaxDetailTable.C_TAX_ID)); }
            set { SetData(FinTaxDetailTable.C_TAX_ID, value); }
        }
		
        [DataMember]
        public decimal ConsumptionTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_CONSUMPTION_TAX)); }
            set { SetData(FinTaxDetailTable.C_CONSUMPTION_TAX, value); }
        }
		
        [DataMember]
        public decimal BusinessTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_BUSINESS_TAX)); }
            set { SetData(FinTaxDetailTable.C_BUSINESS_TAX, value); }
        }
		
        [DataMember]
        public decimal BuildingTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_BUILDING_TAX)); }
            set { SetData(FinTaxDetailTable.C_BUILDING_TAX, value); }
        }
		
        [DataMember]
        public decimal ResourcesTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_RESOURCES_TAX)); }
            set { SetData(FinTaxDetailTable.C_RESOURCES_TAX, value); }
        }
		
        [DataMember]
        public decimal IncrementTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_INCREMENT_TAX)); }
            set { SetData(FinTaxDetailTable.C_INCREMENT_TAX, value); }
        }
		
        [DataMember]
        public decimal CityTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_CITY_TAX)); }
            set { SetData(FinTaxDetailTable.C_CITY_TAX, value); }
        }
		
        [DataMember]
        public decimal EducationTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_EDUCATION_TAX)); }
            set { SetData(FinTaxDetailTable.C_EDUCATION_TAX, value); }
        }
		
        [DataMember]
        public decimal UnloadingTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_UNLOADING_TAX)); }
            set { SetData(FinTaxDetailTable.C_UNLOADING_TAX, value); }
        }
		
        [DataMember]
        public DateTime TaxDate
        {
            get { return Convert.ToDateTime(GetData(FinTaxDetailTable.C_TAX_DATE)); }
            set { SetData(FinTaxDetailTable.C_TAX_DATE, value); }
        }
		
        [DataMember]
        public decimal OtherTax
        {
            get { return Convert.ToDecimal(GetData(FinTaxDetailTable.C_OTHER_TAX)); }
            set { SetData(FinTaxDetailTable.C_OTHER_TAX, value); }
        }
		
		#endregion
	}
	
	
}	

